import React from 'react';

class Button extends React.Component {
    constructor(props) {
        super(props);
    }
    static defaultProps = {
        color: 'blue',
        text: 'confirm'
    }
    render() {
        const { color, text } = this.props;
        return (<button style={{ color: color }}>{text}</button >);
    }
}

export default Button;
